package services

import (
	"micro-member/mqueue"
)

/*
	提供关于RabbitMQ服务

	作者名称：leixiaotian 创建时间：20211124
*/
type RabbitmqInterfaceService interface {
	PullConfirmPost(number int)                       //拉取发帖确认MQ
}

//初始化对象函数
func NewRabbitmqService() RabbitmqInterfaceService {
	return &rabbitmqService{
		rabbitMqService: 		 mqueue.NewRabbitService(),
	}
}

type rabbitmqService struct {
	rabbitMqService 			mqueue.RabbitInterfaceService           //rabbitMQ服务
}

//拉取发帖确认MQ
func (this *rabbitmqService) PullConfirmPost(number int) {
	this.rabbitMqService.PullConfirmPost(number)
	return
}